package cn.jiangxiong.pethome.system.dept.mapper;

import cn.jiangxiong.pethome.base.mapper.BaseMapper;
import cn.jiangxiong.pethome.system.dept.domain.Department;
import cn.jiangxiong.pethome.system.dept.domain.DepartmentRo;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DepartmentMapper extends BaseMapper<Department> {
    //根据Id查询子类
    Long findByParentId(Long id);
    List<DepartmentRo> countByDate();
}
